package accounts

import (
	"github.com/gin-gonic/gin"
	"minititok/utils"
)

var jwtManager = utils.NewJWTManager("AAABBB")

func RegisterRoutes(r *gin.Engine) {
	r.POST("/login/", Login)
	r.POST("/refresh/", refresh)
	r.POST("/register/", register)
	r.GET("/profile/", getProfile)
	r.GET("/cheackUid/", cheackUid)
	r.GET("/getAvatar/*filename", getAvatar)
	r.GET("/profile/videos/", getProfileVideo)
	r.POST("/uploadAvatar/*filename", upLoadAvatar)
	r.GET("/api/me", GetUserInfo)
}
